@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 全局动画 */
@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scale-in {
  animation: scale-in 0.2s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* 渐变背景 */
.bg-gradient {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

/* 彩色渐变背景集合 */
.bg-gradient-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.bg-gradient-pink {
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.bg-gradient-amber {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.bg-gradient-emerald {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.bg-gradient-cyan {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

/* 阴影效果 */
.shadow-soft {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.shadow-hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 闪光效果 */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* 脉冲动画 */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pulse {
  animation: pulse 2s infinite ease-in-out;
}

/* 彩色渐变文字 */
.text-gradient-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.text-gradient-rainbow {
  background: linear-gradient(to right, #3B82F6, #8B5CF6, #EC4899, #F59E0B, #10B981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

/* 气泡浮动动画 */
@keyframes float-bubble {
  0% {
    transform: translateY(0) translateX(0) rotate(0);
  }
  33% {
    transform: translateY(-10px) translateX(5px) rotate(5deg);
  }
  66% {
    transform: translateY(5px) translateX(-5px) rotate(-5deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0);
  }
}

.float-bubble {
  animation: float-bubble 8s ease-in-out infinite;
}

/* 背景动态模式 */
.bg-pattern {
  background-color: #f9fafb;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 毛玻璃效果 */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
} 